package com.sdtv.mediunfusion.mvp.contract;

import com.sdtv.basemodule.http.AppHttpClient;
import com.sdtv.basemodule.mvp.IModel;
import com.sdtv.basemodule.mvp.IView;
import com.sdtv.mediunfusion.mvp.services.MainService;

import io.reactivex.Observable;

/**
 * @ProjectName: MediunFusion
 * @Package: com.sdtv.mediunfusion.mvp.contract
 * @ClassName: MainModel
 * @Description: java类作用描述
 * @Author: 小郭同学
 * @CreateDate: 2019-07-02 14:52
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class MainModel extends IModel {

    public MainModel(IView mIView) {
        super(mIView);
    }


    public MainService getAppService() {
        return (MainService) AppHttpClient.getInstance().initService(MainService.class);
    }

    public Observable getWanArticleList(String index) {
        return addObservable(getAppService()
                .getWanArticleList(index));
    }


}
